#pragma once
#include "CBoard.h"
#define NO_FORBIDDEN 0
#define CHANGLIAN_FORBIDDEN 6
#define DOUBLE_FOUR_FORBIDDEN 4
#define DOUBLE_THREE_FORBIDDEN 3
#define BLACK 1
#define WHITE -1
#define WIN 1
class CJudge
{
	int result;

public:
	CJudge();
	~CJudge();
	/*KeypointJudge：用于递归判断关键点，从而判断禁手
		same为测试点与关键点相隔点数
		direction为当前检查方向，共8个方向
	*/
	int JudgeWin(CBoard, int playername, int key_x, int key_y);
	int ForbiddenJudge(CBoard b,int judge_x,int judge_y);
};
